package com.albert.javabrains;

public class Application {

	public static void main(String[] args) {

		@SuppressWarnings("unused")
		int value = 7;
		int[] values;
		values = new int[3];

		System.out.println(values[0]);

		// set values to int array
		values[0] = 10;
		values[1] = 20;
		values[2] = 30;

		// Get Values and print to console
		System.out.println(values[0]);
		System.out.println(values[1]);
		System.out.println(values[2]);

		for (int i = 0; i < values.length; i++) {
			System.out.println(values[i]);
		}

		// Another way to set values to int array
		int[] numbers = { 100, 200, 300 };
		for (int i = 0; i < numbers.length; i++) {
			System.out.println(numbers[i]);
		}
	}

}
